package com.itheima.web;

import com.itheima.entity.Result;
import com.itheima.service.CheckGroupItemService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/checkGroupItem")
public class CheckGroupItemController {

    @Reference
    private CheckGroupItemService checkGroupItemService;

    @GetMapping("/selectItemIds/{groupId}")
    public Result selectItemIds(@PathVariable("groupId") long groupId){
        return new Result(checkGroupItemService.selectItemIds(groupId));
    }

}
